void setup() {
  size(400, 400);
}

void draw() {
  if (mousePressed == true) {
    fill(255);
  } 
  else {
    fill(0); 
  }
  rect(mouseX, mouseY, 50, 50);
}
